﻿using System.Collections.Generic;
using Orchard.Environment.Extensions.Models;
using Orchard.Security.Permissions;

namespace TissotWeb.ManageUsers
{
    public class Permissions : IPermissionProvider {
        public static readonly Permission ManageNormalUsers = new Permission {
            Description = "Manage Normal Users",
            Name = "ManageNormalUsers"
        };
        public virtual Feature Feature { get; set; }

        public IEnumerable<Permission> GetPermissions() {
            return new[] {
                ManageNormalUsers
            };
        }
        public IEnumerable<PermissionStereotype> GetDefaultStereotypes() {
            return new[] {
                new PermissionStereotype {
                    Name = "Administrator",
                    Permissions = new[] {ManageNormalUsers}
                },
            };
        }
    }
}
